cmake_minimum_required(VERSION 2.6)
PROJECT (jbmon CXX)
INCLUDE_DIRECTORIES(./sockets/ ./bot/)
LINK_DIRECTORIES( ${LINK_DIRECTORIES} ./sockets/ ./bot/)
add_subdirectory( ./bot )
ADD_EXECUTABLE(jbmon agentsocket.cc agentstat.cc cfgparser.cc main.cc rtmon.cc serversocket.cc serverstat.cc bot/bot.cc bot/botsocket.cpp)
TARGET_LINK_LIBRARIES(jbmon boost_regex-mt gloox statgrab ssl pthread Sockets)
INSTALL(PROGRAMS jbmon ${CMAKE_CURRENT_BINARY_DIR}/jbmon DESTINATION bin)
INSTALL(PROGRAMS bot/jmbot ${CMAKE_CURRENT_BINARY_DIR}/bot/jmbot DESTINATION bin)
INSTALL(FILES config/agent.conf config/server.conf  DESTINATION etc/jbmon)
